<?php
require_once 'LoginController.php';
require_once 'view/RegisterView.php';

class RegisterController {
	
	private $l_controller;
	private $view;
	
	function __construct(){
		$this -> l_controller = new LoginController();
		$this -> view = new RegisterView();
	}
	
	public function doRegister(){
		//TODO Använd den här senare
		// if(!$this -> l_controller -> isLoggedIn){
			// header("Location: ./Index.php");
		// }
		return $this -> getContent();
	}
	
	private function getContent(){
		return $this -> view -> getRegisterForm();
	}
}
